package com.guigusuqi.hy.service;

import com.guigusuqi.commonutils.vo.Result;
import com.guigusuqi.hy.dto.Referral;
import com.guigusuqi.hy.entity.Recommend;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigusuqi.hy.vo.RecommendVo;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 新人推荐管理 服务类
 * </p>
 *
 * @author suqi
 * @since 2022-04-19
 */
public interface RecommendService extends IService<Recommend> {

    /**
     * 老客户推荐新人
     * @param referral
     * @return
     */
    Result RecommendNew(Referral referral) throws IOException;

    /**
     * 老客户查询推荐人列表
     * @return
     */
    List<RecommendVo> recommendList() throws IOException;

    /**
     * 查询被哪些人推荐
     * @return
     */
    Result referralList() throws IOException;

}
